$().ready(function () {
    $("#ListaUsuariosModal").dialog({
        autoOpen: false,
        show: {
            effect: "blind"
        },
        hide: {effect: "blind"},
        width: 800,
        height: 300
    });

});
function openDialog()
{
    $("#ListaUsuariosModal").dialog("open");
}
function ListarUsuarios() {
    $.post("listaUsuarios.htm", {dni: "%%", pApe: "%%", sApe: "%%", pNom: "%%"}, function (data) {
        $("#ListaUsuarios").html(data);
    });
    openDialog();
}
function selectUsuario(select)
{
    document.getElementById("usuDni").value = $("#" + select + " td:nth-child(1)").html();
    document.frm1.apePat.value = $("#" + select + " td:nth-child(2)").html();
    document.frm1.apeMat.value = $("#" + select + " td:nth-child(3)").html();
    document.frm1.preNom.value = $("#" + select + " td:nth-child(4)").html();
    $("#ListaUsuariosModal").dialog("close");
}
